package com.hook;

public class TestShutDownHookMain {

	public static void main(String[] args) {

		System.out.println("aaa");
		
		Runtime.getRuntime().addShutdownHook(new Thread3());
	    Thread1 t1 = new Thread1();
	    t1.start();
	    Thread2 t2 = new Thread2();
	    t2.start();
	}

}
